﻿@* 数据访问层项目文件 - Oracle *@
@using Util.Generators.Helpers
@using Version = Util.Generators.Helpers.Version
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var dataProjectName = service.GetDataProjectName();
    var projectName = service.GetDataProjectName( Util.Data.DatabaseType.Oracle );
    Model.Output.FileNameNoExtension = projectName;
    Model.Output.Extension = ".csproj";
    Model.Output.RelativeRootPath = $"src/{projectName}";
}
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>$(NetTargetFramework)</TargetFramework>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Util.Data.EntityFrameworkCore.Oracle" Version="@service.UtilVersion" />
        <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="@Version.EntityFrameworkCoreDesign">
            <PrivateAssets>all</PrivateAssets>
            <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        </PackageReference>
    </ItemGroup>
    <ItemGroup>
        <ProjectReference Include="..\@dataProjectName\@(dataProjectName).csproj" />
    </ItemGroup>
</Project>
